//
//  ShareMyBookView.m
//  Bespoke
//
//  Created by Cheng on 12/11/6.
//
//

#import "ShareMyBookView.h"
#import "AccountGroup.h"
#import "RequestAPIFunction.h"
#import "GDataXMLNode.h"

#define MYBOOK_SHAREGROUP_API @"http://54.235.166.43/BeSpokeAPI/Group/MyBook_ShareGroup.php"

@implementation ShareMyBookView
@synthesize AB_CurrentBook, delegate;

- (IBAction)SendEmailPressed:(id)sender {
    [self.delegate OpenEmailView];
}

#pragma mark - Touches

- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event
{
    if( point.x > 0 && point.x < self.frame.size.width && point.y > 0 && point.y < self.frame.size.height )
    {
        [self.delegate uiViewTouched_ShareMyBookView:YES];
        return YES;
    }
    
    [self.delegate uiViewTouched_ShareMyBookView:NO];
    return NO;
}

@end
